#ifndef __BOOK_INCLUDE
#define __BOOK_INCLUDE

#include <cstdlib>
#include <cstdio>
#include <iostream>

using namespace std;

/** Class for a Book containing a title and year */
class Book {
	
	public:
		/** Empty constructor, only used for stack initialization */
		Book();
		
		/**
		  Default constructor that requires all values.
			Parameters:
				title - the title of the book
				year - the year the book was published
		*/
		Book(string, int);
		
		/** 
			Writes the book to the specified output stream.
			Parameters:
				os - the output stream to write to
				book - the book to write to the stream
		*/
		friend ostream& operator<<(ostream&, const Book&);
		
	private:
		/** The title of the book */
		string title;
		
		/** The year the book was published as an integer.  AD values only. */
		int year;
};

#endif